package cn.edu.sdjzu.xg.eagle.Service;

import cn.edu.sdjzu.xg.eagle.entity.Pagination;
import cn.edu.sdjzu.xg.eagle.entity.Teacher;
import cn.edu.sdjzu.xg.eagle.exception.BysjException;
import cn.edu.sdjzu.xg.eagle.util.Condition;

import java.sql.SQLException;
import java.util.Collection;
import java.util.List;


public interface TeacherServiceInterface {
    boolean add(Teacher teacher) throws SQLException;
    boolean delete(Teacher teacher) throws SQLException;
    Collection<Teacher> findAll(List<Condition> conditionList) throws SQLException, BysjException;
    Collection<Teacher> findAll() throws SQLException;
    Collection<Teacher> findAll(List<Condition>conditionList, Pagination pagination) throws SQLException, BysjException;
}
